//#region   -------------本地存储数据key
// 游戏记录key
export const THQBYKEY: string = 'THQBYKEY';
// 参与人员key
export const PARTICIPANTSLIST: string = 'PARTICIPANTSLIST';
// 主持人key
export const HOSTNAMEKEY: string = 'HOSTNAMEKEY';
//#endregion

//#region   -------------游戏参与人员

// 个人信用
const teamListOne = ['郭胜', '熊李园', '姚云浩', '陈甜甜', '周志豪', '谢和榕'];
// 商业 + 职业
const teamListTwo = [
  '张振',
  '蒋新凯',
  '于琳琳',
  '汤先伟',
  '汪之恒',
  '甄雪超',
  '王思坤',
  '彭银冠',
  '林家伟',
  '单泽广',
];
// 企业 + 平台
const teamListThree = ['郭亚宾', '陆顺', '杨昆', '尹子博'];
// 过滤掉不经常参加的人
const filterTeamList: string[] = [];
// 最终参与人
export const joinTeamList = [...teamListOne, ...teamListTwo, ...teamListThree]
  .filter((item) => !filterTeamList.includes(item))
  .map((item, index) => ({ key: item, label: item }));
//#endregion

// 玩法模式
const modeTypeList = [
  {
    key: '天黑请闭眼',
    label: '天黑请闭眼',
  },
];

//#region   -------------表单配置
export const formItemLayout = {
  labelCol: { span: 8 },
  wrapperCol: { span: 15 },
};
export const config = [
  {
    type: 'participantsListSelect',
    name: 'participantsList',
    key: 'participantsList',
    label: '参与人员',
    selectList: joinTeamList,
    placeholder: '请选择',
    tips: '请按照身份牌的顺序进行添加',
    span: 20,
    labelCol: {
      span: 4,
    },
  },
  {
    type: 'input',
    name: 'gameName',
    key: 'gameName',
    label: '游戏名',
  },
  {
    type: 'select',
    name: 'modeType',
    key: 'modeType',
    label: '玩法模式',
    selectList: modeTypeList,
    placeholder: '请选择',
  },
  {
    type: 'select',
    name: 'hostName',
    key: 'hostName',
    label: '主持人',
    selectList: joinTeamList,
    placeholder: '请选择',
  },
  {
    type: 'datePicker',
    name: 'startTime',
    key: 'startTime',
    label: '开始日期',
    placeholder: '请选择',
  },
  {
    type: 'multipleSelect',
    name: 'killerList',
    key: 'killerList',
    label: '杀手阵营',
    placeholder: '请选择',
    mutexKeyList: ['policeList', 'civilianList'],
  },
  {
    type: 'multipleSelect',
    name: 'policeList',
    key: 'policeList',
    label: '警察阵营',
    placeholder: '请选择',
    mutexKeyList: ['killerList', 'civilianList'],
  },
  {
    type: 'multipleSelect',
    name: 'civilianList',
    key: 'civilianList',
    label: '平民阵营',
    placeholder: '请选择',
    mutexKeyList: ['killerList', 'policeList'],
    span: 20,
    labelCol: {
      span: 4,
    },
  },
  {
    type: 'dayList',
    name: 'dayList',
    key: 'dayList',
    label: '',
    mutexKeyList: ['killNum', 'throw'],
    placeholder: '请选择',
  },
];
//#endregion
